<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div class='div_up'>&nbsp;</div>
<s:if test="#request.statisticalType == 1">
	<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
		<thead>
			<tr>
				<td width="110px">订单号</td>
				<td width="80px">委托项目</td>
				<td>货量</td>
				<td width="80px">毛利润</td>
				<td width="150px">奖励(原币值)</td>
				<td width="80px">奖励日期</td>
			</tr>
		</thead>
		<s:iterator value="#request.workFees" status="sta">
			<tr <s:if test="#sta.odd"> class="tr1" </s:if>>
				<td><s:property value="work.workCode" /></td>
				<td><s:property value="work.item.name" /></td>
				<td onmouseover="this.title=this.innerHTML.trim(); this.onmouseover=null;">
					<s:if test="work.item.type == 1"><s:property value="work.boxAmount != null ? work.boxAmount.replaceAll(',',' ') : ''" /></s:if>
					<s:elseif test="work.item.type == 4"><s:property value="work.expressWeight" />KGS/<s:property value="work.expressVolume" />CBM</s:elseif>
					<s:else><s:property value="work.grossWeight" />KGS/<s:property value="work.volume" />CBM</s:else>
				</td>
				<td><s:property value="work.option5" /></td>
				<td><s:property value="work.option4" />
					<s:if test="currency.id != #request.currency.id">
						(<s:property value="currency.type"/> <s:property value="totalReward"/>)
					</s:if>
				</td>
				<td><s:date name="rewardTime" format="yyyy-MM-dd" /></td>
			</tr>
		</s:iterator>
	</table>
</s:if>
<s:elseif test="#request.statisticalType == 2">
	<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
		<thead>
			<tr>
				<td width="110px">订单号</td>
				<td width="80px">委托项目</td>
				<td>货量</td>
				<td width="100px">毛利润</td>
				<td width="100px">公司利润</td>
				<td width="90px">奖励</td>
			</tr>
		</thead>
		<s:iterator value="#request.workList" status="sta">
			<tr <s:if test="#sta.odd"> class="tr1" </s:if>>
				<td><s:property value="workCode" /></td>
				<td><s:property value="item.name" /></td>
				<td onmouseover="this.title=this.innerHTML.trim(); this.onmouseover=null;">
					<s:if test="item.type == 1"><s:property value="boxAmount != null ? boxAmount.replaceAll(',',' ') : ''" /></s:if>
					<s:elseif test="item.type == 4"><s:property value="expressWeight == null ? 0 : expressWeight" />KGS/<s:property value="expressVolume == null ? 0 : expressVolume" />CBM</s:elseif>
					<s:else><s:property value="grossWeight == null ? 0 : grossWeight" />KGS/<s:property value="volume == null ? 0 : volume" />CBM</s:else>
				</td>
				<td><s:property value="option5" /></td>
				<td><s:property value="option6" /></td>
				<td><s:property value="option4" /></td>
			</tr>
		</s:iterator>
	</table>
</s:elseif>
<s:else>
<s:if test="#request.item.type == 1">
	<s:set var="orgTxt" value="'出发地'"/>
	<s:set var="desTxt" value="'目的地'"/>
</s:if>
<s:elseif test="#request.item.type == 2">
	<s:set var="orgTxt" value="'出发地'"/>
	<s:set var="desTxt" value="'目的地'"/>
</s:elseif>
<s:elseif test="#request.item.type == 3">
	<s:set var="orgTxt" value="'出发地'"/>
	<s:set var="desTxt" value="'目的地'"/>
</s:elseif>
<s:elseif test="#request.item.type == 4">
	<s:set var="orgTxt" value="'出口国'"/>
	<s:set var="desTxt" value="'进口国'"/>
</s:elseif>
<s:elseif test="#request.item.type == 5">
	<s:set var="orgTxt" value="'出发地'"/>
	<s:set var="desTxt" value="'目的地'"/>
</s:elseif>
<s:else>
	<s:set var="orgTxt" value="'地点'"/>
</s:else>
	<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
		<thead>
			<tr>
				<td width="100px">订单号</td>
				<s:if test="#request.statisticalType > 3">
					<td width="100px">委托人</td>
				</s:if>
				<td>货量</td>
				<td width="150px"><s:property value="#orgTxt"/></td>
				<s:if test="#request.item.type <= 5">
					<td width="150px"><s:property value="#desTxt"/></td>
				</s:if>
				<s:if test="#request.statisticalType == 4">
					<td width="50px">权限</td>
				</s:if>
				<s:elseif test="#request.statisticalType == 5">
					<td width="150px">作业时间</td>
				</s:elseif>
				<td width="80px">订单状态</td>
			</tr>
		</thead>
		<s:iterator value="#request.workList" status="sta">
			<tr <s:if test="#sta.odd"> class="tr1" </s:if>>
				<td><s:property value="workCode" /></td>
				<s:if test="#request.statisticalType > 3">
					<td><s:property value="client1.nickname" /></td>
				</s:if>
				<td onmouseover="this.title=this.innerHTML.replaceAll('&nb',' ').replaceAll('sp;',' ').trim(); this.onmouseover=null;">
					<s:if test="item.type == 1"><s:property value="boxAmount != null ? boxAmount.replaceAll(',',' ') : ''" /></s:if>
					<s:elseif test="item.type == 4"><s:property value="expressWeight == null ? 0 : expressWeight" />KGS/<s:property value="expressVolume == null ? 0 : expressVolume" />CBM</s:elseif>
					<s:else>
						<s:property value="grossWeight == null ? 0 : grossWeight" />KGS/<s:property value="volume == null ? 0 : volume" />CBM<s:if test="item.type == 5">/<s:property value="boxAmount != null ? boxAmount.replaceAll(',',' ') : ''" /></s:if>
					</s:else>
					&nbsp;
				</td>
				<td onmouseover="this.title=this.innerHTML.replaceAll('&nb',' ').replaceAll('sp;',' ').trim(); this.onmouseover=null;">
					<s:if test="item.type == 4"><s:property value="expressExportCountry.fullname" /></s:if>
					<s:else><s:property value="pointORG.fullname" /></s:else>
					&nbsp;
				</td>
				<s:if test="item.type <= 5">
					<td onmouseover="this.title=this.innerHTML.replaceAll('&nb',' ').replaceAll('sp;',' ').trim(); this.onmouseover=null;">
						<s:if test="item.type == 4"><s:property value="expressImportCountry.fullname" /></s:if>
						<s:else><s:property value="pointDES.fullname" /></s:else>
						&nbsp;
					</td>
				</s:if>
				<s:if test="#request.statisticalType == 4">
					<td>
						<s:if test="option1 == 0">创建</s:if>
						<s:elseif test="option1 == 1">编辑</s:elseif>
					</td>
				</s:if>
				<s:elseif test="#request.statisticalType == 5">
					<td><s:property value="option1" /></td>
				</s:elseif>
				<td>
					<s:if test="workingStatus == 1">计划</s:if>
					<s:elseif test="workingStatus == 2">进行中</s:elseif>
					<s:elseif test="workingStatus == 3">已完成</s:elseif>
					<s:elseif test="workingStatus == 4">暂停</s:elseif>
					<s:elseif test="workingStatus == 5">已归档</s:elseif>
				</td>
			</tr>
		</s:iterator>
	</table>
</s:else>
